package com.ztc.service;

import com.ztc.beans.Book;
import com.ztc.beans.Jbook;
import com.ztc.util.Page;

import java.util.List;

public interface BookService {
    void delBook(int id1);

    Book getBookById(int id1);
    Book getBookById(String id1);

    void upBook(int i, Book book1);

    void addBoook(Book book);

    boolean getBookName(String name);

    Book getBookById1(Integer id1);

    void upbookBsum1(int i);

    void addjbook(int id, String bid);

    boolean getjbook(int id, String bid);

    List<Jbook> getjbooks(int id);

    void upbookBsum2(String bid);

    void upjbook(String id);

    boolean getjbook(String bid);

    int getBookSum(String bname, String author);

    List<Book> getbooks(String bname, String author, Page page);
}
